package com.lagou.sqlSession;

import java.lang.reflect.Method;
import java.util.List;

public interface SqlSession {

    //查询所有
    public <E> List<E> selectList(String statementid,Object... params) throws Exception;

    //根据条件查询单个
    public <T> T selectOne(String statementid,Object... params) throws Exception;

    //抽象出来查询入口
    public Object select(Method method, String statementId, Object[] args) throws Exception;

    //插入
    public void insert(String statementid, Object o) throws Exception;

    //更新
    public void update(String statementid, Object o) throws Exception;

    //删除
    public void delete(String statementid, Object o) throws Exception;

    //为Dao接口生成代理实现类
    public <T> T getMapper(Class<?> mapperClass);





}
